<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<style>
#main {
	float: left;
	margin-left: 100px;
	overflow: hidden;
	width: 350px;
	height: auto;
	border: 1px solid #AC8853;
	border-radius: 5px;
}

.bag {
	overflow: hidden;
	height: auto;
}

#main * {
	border-radius: 5px;
	border-color: #AC8853;
	font-style: oblique;
	font-family: Serif;
}

#main .lb {
	width: 100px;
	display: block;
	float: left;
	margin: 3px 3px 3px 3px;
	line-height: 25px;
}

#main .ip {
	width: 220px;
	display: block;
	float: left;
	margin: 3px 3px 3px 3px;
	line-height: 25px;
}
.tableTour {
width: auto;
display:block;
float:left;
margin: 3px 3px 3px 3px;
line-height: 25px;
border-radius: 10px;
border: 2px solid #AC8853;
}
</style>
<%@page import="java.util.ArrayList"%>
<%@page import="model.bean.ServiceInfo"%><head>
<title>Service Statistic</title>
</head>
<jsp:include page="common/header.jsp"></jsp:include>
<div id="page-wrapper">
  <div id = "main">
	<h3>Service Statistic Pane</h3>
	<form name="tourForm" method="post"
		action="${pageContext.request.contextPath}/TourUpdateServlet">
	<div class = "bag"><label class = "lb" >Loại Dịch Vụ</label><Select class = "ip" name="object">
		<option value="1">Nhà Xe</option>
		<option value="2">Nhà Hàng</option>
		<option value="3">Khách Sạn</option>
	</select></div> 
	<div class = "bag"><label class = "lb">Tu ngay: </label><input class = "ip" type="text" name="tfStartDay"></div>
	<div class = "bag"><label class = "lb"> Den ngay: </label>	<input type="text" name="tfEndDay" class = "ip"></div> 
	<div class = "bag"><label class = "lb">Thứ tự sắp xếp</label>
		<Select class = "ip" name="order">
		<option value="1">Tang</option>
		<option value="2">Giam</option>
	</select></div>
	<div class = "bag"> <input  class = "ip" id="btStatistic" type="submit" name="process"
		value="Service Statistic" /></div> 
		</div>
		<%
							ArrayList<ServiceInfo> listService = (ArrayList<ServiceInfo>)
																	request.getAttribute("listService");
						
							if ( listService!= null){
							    %>
	<table border="1px" class="tableTour">
		<tr>
			<th>Ma Dich Vu</th>
			<th>Ten Nha Cung Cap</th>
			<th>Dia Chi</th>
			<th>Email</th>
			<th>Luot so dung</th>
		</tr>
		<%
						     	
						    	for (int i = 0; i < listService.size(); i++) {        
						%>
		<tr>
			<td><%=listService.get(i).getSvIndex() %></td>
			<td><%=listService.get(i).getSvName()%></td>
			<td><%=listService.get(i).getSvAddress() %></td>
			<td><%=listService.get(i).getSvEmail() %></td>
			<td><%=listService.get(i).getSvCount() %></td>
		</tr>
		<%
							}
							    %>
	</table>
	<%
							}
						%>	
	</form>
</div>
<jsp:include page="common/footer.jsp"></jsp:include>